<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<div class="box"></div>
	<script type="text/javascript">
		const  oBox = document.querySelector('.box');
		let id =1,
		    name='小马哥';
		let htmlStr =`<ul>
			<li>
				<p id=${id}>${name}</p>
			</li>
		</ul>`;
		oBox.innerHTML=htmlStr;


		
	</script>
</body>
</html>